package com.example.administrator.dagger2demo.http;

import com.example.administrator.dagger2demo.adapter.inter.Indo;
import com.example.administrator.dagger2demo.domain.ReleaseInfo;

import java.util.ArrayList;


import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import rx.Observable;

/**
 * Created by Administrator on 2016/4/12.
 */
public interface RestApi {
    String BASE_URL = "http://192.168.2.153:8080/MccServer/";

    @GET("requestIndex")
    Observable<ArrayList<ReleaseInfo>> requestIndex();

    @GET("requestIndex")
    Observable<ArrayList<Indo>> requestIndexs();


    @GET("images/avater/new-ca2fedc5f82942d8c2b66157be866e6c.apatch")
    Call<ResponseBody> downloadFileWithFixedUrl();

    @GET("images/avater/new-ca2fedc5f82942d8c2b66157be866e6c.apatch")
    Observable<ResponseBody> cancel();
}
